﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class StreetCenter_StreetMaster : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        lblshowtime.Text = "今天是：" + DateTime.Now.ToString("yyyy年MM月dd日");
        if (Session["UserName"] != null && Session["UserType"].ToString() == "街道办事处")
        {
            lblusername.Text = Session["UserName"].ToString();
            lblstreet.Text = Session["UserStreet"].ToString() + Session["UserType"].ToString();
            //lblusertype.Text = Session["UserType"].ToString();
        }
        else
        {
            Response.Redirect("../Login.aspx");
        }
    }
}
